package com.woniuxy.demo.epai.dao;

import com.woniuxy.demo.epai.model.ProductParameter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author epai
 * @since 2021-04-12
 */


public interface ProductParameterMapper extends BaseMapper<ProductParameter> {



    @Insert("insert into e_product_parameter(token,c_id,appearance,checked_out) value(#{token},#{cId},#{appearance},#{checkedOut})")
    @Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id")
    int addProductParameter(ProductParameter productParameter);
}
